import { options, handleResponse,handleError } from './include'

export function recordingPlayInfo(recordingPlayInfo) {
    return fetch("api/playInfoManager/recordingPlayInfo", { ...options, body: JSON.stringify(recordingPlayInfo) }).then(handleResponse).catch(handleError)
}

export function setPlayInfo(setPlayInfo) {
    return fetch("api/playInfoManager/setPlayInfo", { ...options, body: JSON.stringify(setPlayInfo) }).then(handleResponse).catch(handleError)
}